package com.netkit.event;

import java.util.EventObject;

import org.jboss.netty.channel.Channel;

import com.netkit.NetkitContext;


public class ChannelEvent extends EventObject {

	private static final long serialVersionUID = 2552115504371760252L;
	private NetkitContext serverContext;
	private Channel channel;

	public ChannelEvent(NetkitContext serverContext, Channel channel) {
		super(channel);
		this.serverContext = serverContext;
		this.channel = channel;
	}


	public Channel getChannel() {
		return channel;
	}


	public int getChannelID() {
		return getChannel().getId();
	}

	public NetkitContext getServerContext(){
		return this.serverContext;
	}
}
